#ifndef NEXT_LEVEL
#define NEXT_LEVEL

#include "State.h"
#include "Level.h"
#include <sstream>

class NextLevel : public State
{
public:

	NextLevel(const std::function<void(StateEnum STATE)> &giveTokenTo, RenderingEngine &render, EventParser &eventParser, SpriteManager &SpriteManager, MusicPlayer &musicPlayer);

	void loop();
	void interpretInput(EventEnum input);
	void interpretMouse(const sf::Vector2f&);
	void init();
	void typeWrite(std::string text);

private:
	sf::Clock timer;
	unsigned int character=0;
	int characterMultiple = 1;

};
#endif